Skip to content

Conversation

@jayantk
Copy link
Contributor

@jayantk jayantk commented Jan 10, 2025

Add metrics to track how many callbacks succeed or fail.

One slightly tricky problem is that sometimes a transaction will succeed, but we will get an error back from the RPC -- this seems to happen a lot for berachain in particular. In the "likely failure" case, I've added an extra check that the request is still on-chain. I only increment the failure count if the request is still on-chain.

Thus, after this change, we end up with three categories of requests: known successes, known failures, and unknown.

I also made the request duration metrics only apply to successful callbacks.

@vercel
Copy link

vercel bot commented Jan 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 10:03pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 10:03pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 10:03pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
component-library ⬜️ Ignored (Inspect) Visit Preview Jan 10, 2025 10:03pm
insights ⬜️ Ignored (Inspect) Visit Preview Jan 10, 2025 10:03pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants